package com.cloud.sample.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cloud.sample.cache.UserCache;
import com.cloud.sample.dao.UserDao;
import com.cloud.sample.entity.User;
import com.cloud.sample.service.UserService;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 * <p>
 * 用户 服务实现类
 * </p>
 *
 * @author fengwenjin
 * @since 2019-02-16
 */
@Setter
@Service
public class UserServiceImpl extends ServiceImpl<UserDao, User> implements UserService {

    @Autowired
    private UserCache userCache;

    @Override
    public User getById(Serializable id) {
        return super.getById(id);
    }

}
